<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" +
            request.getServerPort() + path + "/";
%>
<base href="<%=basePath%>">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        div {
            width: 60%;
            margin: 0 auto;
        }

        h3 {
            text-align: center;
        }
        h1 {
            text-align: center;
        }

        table, tr, td, th {
            text-align: center;
            border: 1px solid gray;
            border-collapse: collapse;
        }

        table {
            width: 100%;
        }

        tr:nth-child(2n) {
            background-color: rgba(88, 73, 65, 0.18);
        }

        tr:hover {
            background-color: rgb(255, 235, 149);
        }

        #tt {
            text-align: right;
            padding-right: 20px;
        }
    </style>
</head>
<body>
<div>
    <table>

        <h1>登录日志信息展示</h1>
        <table>
            <tr>
                <th>用户名</th>
                <th>主机名</th>
                <th>内网IP</th>
                <th>外网IP</th>
                <th>登录时间</th>
                <th>ID</th>
            </tr>
            <c:forEach items="${allLoginLogList}" var="loginLog">
                <tr>
                    <td>${loginLog.username}</td>
                    <td>${loginLog.hostName}</td>
                    <td>${loginLog.intranetIP}</td>
                    <td>${loginLog.internetIP}</td>
                    <td>${loginLog.loginTime}</td>
                    <td>${loginLog.uuid}</td>
                </tr>
            </c:forEach>
        </table>

    </table>
</div>

</body>
</html>
